import query from './atom/db/query';
import { IBaseTable } from './atom/db/interfaces';

declare const action_id: string;
declare const session_id: string;
declare const spaceid: string;

interface Message {
	filter: {};
}

async function atom(msg: Message) {
	const systemid = '6051';
	const { exec, prepare } = query(action_id, session_id, spaceid, systemid);

	// 快捷菜单
	prepare('quick_menu', ['no', 'user_code', 'user_name', 'screen_no', 'menu_no', 'menu_name', 'menu_icon', 'menu_order'], msg.filter, 0, 1, ['menu_order']);
	const [data] = await exec();

	return data;
}